package com.katze.boot.system.domain;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.katze.boot.common.converter.DateTimeStringConverter;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("sys_role")
@ExcelIgnoreUnannotated
public class Role implements Serializable {

    private static final long serialVersionUID = -1714476694755654924L;

    @TableId(value = "ROLE_ID", type = IdType.AUTO)
    private Long roleId;

    @ExcelProperty(value = "角色名称")
    private String roleName;

    @ExcelProperty(value = "角色别名")
    private String alias;

    @ExcelProperty(value = "角色描述")
    private String remark;

    @ExcelProperty(value = "创建时间", converter = DateTimeStringConverter.class)
    private Date createTime;

    @ExcelProperty(value = "修改时间", converter = DateTimeStringConverter.class)
    private Date modifyTime;

    private transient String createTimeFrom;
    private transient String createTimeTo;
    private transient String menuId;

//    @ExcelField(value = "数据范围", writeConverter = DataScopeWriteConverter.class,readConverter = DataScopeReadConverter.class,options = DataScopeOptions.class )
//    private Integer dataScope;
}
